









package com.company.xzhuangtai.section3;

/**
 * @author cbf4Life cbf4life@126.com
 * I'm glad to share my knowledge with you all.
 * �����Źر��Ժ󣬵��ݿ�������Щ����
 */
public class ClosingState extends LiftState {

	
	@Override
	public void close() {
		System.out.println("�����Źر�...");

	}

	
	@Override
	public void open() {
		super.context.setLiftState(Context.openningState);  
		super.context.getLiftState().open();
	}

	
	@Override
	public void run() {
		super.context.setLiftState(Context.runningState); 
		super.context.getLiftState().run();
	}

	
	@Override
	public void stop() {
		super.context.setLiftState(Context.stoppingState);  
		super.context.getLiftState().stop();
	}
	

}